<script lang="ts" setup>
import { columns, schemas, searchSchemas } from './meta';

import { BasicCrud } from '@/components/crud';
import { addNotice, delNotice, listNotice, updateNotice } from '@/api/system/notice';

defineOptions({
  name: 'NoticePage',
});
</script>

<template>
  <div>
    <BasicCrud
      :table-columns="columns"
      :form-schemas="schemas"
      :search-schemas="searchSchemas"
      :request="listNotice"
      :create-request="addNotice"
      :modify-request="updateNotice"
      :delete-request="delNotice"
      key-field="noticeId"
    />
  </div>
</template>

<style lang="less" scoped></style>
